﻿using System.Linq;

namespace CardGamesLibrary.Poker.TexasHoldem
{
    public class InitTexasHoldemTableTurn : TexasHoldemTableTurnBase
    {
        private readonly PokerTable _table;

        public InitTexasHoldemTableTurn(PokerTable table) : base(table)
        {
            _table = table;
        }

        protected override void DealCards()
        {
            _table.Dealer.DealTo(
                _table.Seats
                    .Where(a => a.Player != null)
                    .Select(a => a.Hand)
                /* 2 cards */
                , 2);
        }
    }
}